package org.linlinjava.litemall.admin.vo.shop;

import org.hibernate.validator.constraints.Length;

import javax.validation.Valid;
import javax.validation.constraints.*;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author wj
 * @date 2021/8/19 14:42
 */
public class CollectMoneyTemplateAddVo {

    @NotNull(message = "店铺id不能为空")
    private Integer shopId;

    private Integer templateId;

    @NotBlank(message = "收费名称不能为空")
    @Length(min = 1,max = 20,message = "收费名称长度错误")
    private String templateName;

    @Length(max = 20,message = "备注长度错误")
    private String remarks;


    private List<@Valid BasicCharge> collectModelList;

    @DecimalMax(value = "9999",message = "自定义收费不能高于9999")
    private BigDecimal customPrice;

    @NotNull(message = "封顶收费不能为空")
    private Integer cappinCharge;




    public Integer getShopId() {
        return shopId;
    }

    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }

    public Integer getTemplateId() {
        return templateId;
    }

    public void setTemplateId(Integer templateId) {
        this.templateId = templateId;
    }

    public String getTemplateName() {
        return templateName;
    }

    public void setTemplateName(String templateName) {
        this.templateName = templateName;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public List<BasicCharge> getCollectModelList() {
        return collectModelList;
    }

    public void setCollectModelList(List<BasicCharge> collectModelList) {
        this.collectModelList = collectModelList;
    }

    public BigDecimal getCustomPrice() {
        return customPrice;
    }

    public void setCustomPrice(BigDecimal customPrice) {
        this.customPrice = customPrice;
    }

    public Integer getCappinCharge() {
        return cappinCharge;
    }

    public void setCappinCharge(Integer cappinCharge) {
        this.cappinCharge = cappinCharge;
    }

}
